//package com.example.myowntodo.fet_xhttpdemo.service;
//
//import android.content.Context;
//
//import com.xuexiang.xrouter.annotation.Router;
//import com.xuexiang.xrouter.facade.service.SerializationService;
//import com.xuexiang.xutil.net.JsonUtil;
//
//import java.lang.reflect.Type;
//
//@Router(path = "/services/json")
//public class JsonSerializationService implements SerializationService {
//    @Override
//    public String object2Json(Object instance) {
//        return JsonUtil.toJson(instance);
//    }
//
//    @Override
//    public <T> T parseObject(String input, Type clazz) {
//        return JsonUtil.fromJson(input, clazz);
//    }
//
//    @Override
//    public void init(Context context) {
//    }
//}
